home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1166 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.6 KB

  1. From: austern@isolde.mti.sgi.com (Matt Austern)
  2. Message-ID: <AUSTERN.96Apr18160013@isolde.mti.sgi.com>
  3. X-Original-Date: 18 Apr 1996 23:00:13 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 19 Apr 96 14:49:33 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Template argument deduction
  9. Organization: SGI
  10. References: <FREYBURG.96Apr15144107@glitch.stanford.edu> <xsoratnorr5.fsf@avs.cs.rpi.edu>
  11.     <FREYBURG.96Apr18141053@wavelet.stanford.edu>
  12. Reply-To: austern@mti.mti.sgi.com
  13. In-Reply-To: freyburg@wavelet.stanford.edu's message of 18 Apr 1996 21:14:46 GMT
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMXeoCOEDnX0m9pzZAQHAPAF+NoVTu7+hu+JJjKWkmC3fYVPAawvuaQD4
  16.     RMehIjS/uBhE8Ze9/pXVe0tXn6b8E+cO
  17.     =bqAV
  18.  
  19. In article <FREYBURG.96Apr18141053@wavelet.stanford.edu>
  20. freyburg@wavelet.stanford.edu (Brian Michael Freyburger) writes:
  21.  
  22. > > It's a non-issue since default template arguments cannot be
  23. > > specified for function templates.
  24. > > 
  25. > >     Daveed
  26. > Where in the working papers does it say this?  They appear to me to be
  27. > introduced in 14.8 [temp.arg], which as far as I can tell applies to
  28. > both functions and classes.  I see nothing in 14.10 [temp.fct] which
  29. > disallows them--what did I miss?
  30.  
  31. That's right: there's nothing in the WP that disallows default
  32. template arguments for functions; there's also nothing there, though,
  33. that says what their semantics would be if they were allowed.  
  34.  
  35. The committee had to choose between defining the semantics of default
  36. template arguments for functions, or simply disallowing them; it chose
  37. the latter.  This decision was made at the Santa Cruz meeting, so it
  38. isn't yet reflected in a new version of the WP.
  39.  
  40. I don't think there would have been any technical problems with
  41. allowing default template arguments for function templates; it's just
  42. that it would have required a fair amount of work to come up with a
  43. clear set of rules.  (I can think of at least three or four issues
  44. that would have had to be resolved, which probably means that there
  45. are another dozen that I haven't thought of.)  The general feeling was
  46. that the feature wouldn't have been important enough to be worth that
  47. much effort.
  48. -- 
  49. Matt Austern
  50. SGI: MTI Compilers Group
  51. austern@isolde.mti.sgi.com
  52. ---
  53. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  54. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  55. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  56. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  57. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  58.